import Cookies from 'js-cookie'

export function getCookie(key) {
  return Cookies.get(key)
}

export function setCookie(key,value) {
  return Cookies.set(key,value)
}

export function removeCookie(key) {
  return Cookies.remove(key)
}

//例如：config={ expires: 7 }有效期七天
export function setCookieAndTime(key,value,config) {
  return Cookies.set(key,value,config)
}
